package com.example.myapplication;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class SliderBarActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_slider_bar);
        TextView tv = findViewById(R.id.tv);
        SliderBar sliderBar = findViewById(R.id.slider);
        sliderBar.setOnTouchLetterChangedListener(new SliderBar.OnTouchLetterChangedListener() {
            @Override
            public void onTouchLetterChanged(String s) {
                tv.setText(s);
            }
        });
    }
}
